package com.gugee.tiktok.web.repository;

import com.gugee.tiktok.web.model.mysql.ChallengeCollection;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface ChallengeCollectionRepository extends CrudRepository<ChallengeCollection,Long>,ChallengeCollectionExtRepository{
    int countByUserId(long userId);

    Optional<ChallengeCollection> findByCidAndUserId(long cid, long userId);
}
